package top.infopub.mgr.bpa.dao;

import java.util.List;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import top.infopub.dto.bpa.BusinessPaymentQueryDto;
import top.infopub.dto.bpa.DeductionRecordQueryDto;
import top.infopub.mgr.bpa.vo.BusinessPaymentVo;
import top.infopub.mgr.bpa.vo.DeductionRecordVo;
import top.infopub.model.bpa.DeductionRecord;
import top.infopub.model.bpa.DeductionRecordExample;

public interface DeductionRecordMapper {
    long countByExample(DeductionRecordExample example);

    int deleteByExample(DeductionRecordExample example);

    int deleteByPrimaryKey(String id);

    int insertBatch(List<DeductionRecord> records);

    int insert(DeductionRecord record);

    int insertSelective(DeductionRecord record);

    DeductionRecord selectOneByExample(DeductionRecordExample example);

    List<DeductionRecord> selectByExample(DeductionRecordExample example);

    DeductionRecord selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") DeductionRecord record, @Param("example") DeductionRecordExample example);

    int updateByExample(@Param("record") DeductionRecord record, @Param("example") DeductionRecordExample example);

    int updateByPrimaryKeySelective(DeductionRecord record);

    int updateByPrimaryKey(DeductionRecord record);

    /**
     * 根据条件查询扣款记录列表
     *
     * @param deductionRecordQueryDto 查询参数
     * @return
     * @see
     */
    Page<DeductionRecordVo> selectByDomainWhere(DeductionRecordQueryDto deductionRecordQueryDto);
}